package cn.tedu.fresheveryday.controller;

import cn.tedu.fresheveryday.service.IOrderStatusService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@Api(tags = "订单状态模块")
@RequestMapping(path = "/order_status", produces = "application/json;charset=utf-8")
public class OrderStatusController {
    @Autowired
    private IOrderStatusService service;

    /**
     * 查询全部订单状态名称
     * @return List<String>
     */
    @GetMapping("/selectAll")
    @ApiOperation("查询全部订单状态名称")
    public List<String> selectAll() {
        return service.selectAll();
    }

}